package com.hopes.bizz.poll.monitor.vo;

import com.hopes.bizz.poll.common.constant.enums.PollSysDictEnum;
import com.hopes.bizz.poll.monitor.entity.PollMonitorSiteEntity;
import com.hopes.boss.admin.api.resolver.DictResolver;
import com.hopes.boss.admin.api.resolver.enums.SysDictEnum;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author daijie
 * @version 1.0
 * @date 2023/9/27 11:35
 * @Description:
 */
@Data
public class PollMonitorSiteByMainTypeVO implements Serializable {
    private static final long serialVersionUID = -773790070363084948L;

    /**
     * id
     */
    private Long id;

    /**
     * 站点大类
     */
    private Integer monitorTypeMain;

    /**
     * 类型编码
     */
    private Integer monitorType;

    /**
     * 站点类型名称
     */
    private String name;

    /**
     * 是否有折算值
     */
    private Boolean zsFlag;

    /**
     * 备注
     */
    private String remarks;

    /**
     * 监控点
     */
    private List<PollMonitorSiteEntity> monitorSiteList;

    public String getZsFlagStr() {
        return DictResolver.getItemLabelByValue(SysDictEnum.yes_no_type, this.zsFlag);
    }

    public String getMonitorTypeMainStr() {
        return DictResolver.getItemLabelByValue(PollSysDictEnum.poll_monitor_type, this.monitorTypeMain);
    }
}
